﻿using System;
using DC2010.Objects.Base;
using DC2010.Objects.Logic;

namespace DC2010.Objects.Structures
{
    [Serializable]
    public class LevelData : BaseData
    {
	
        public LevelGfx Gfx
        {
            get
            {
                if (!string.IsNullOrEmpty(GfxId))
                {
                    return null;// Root.I.LevelSystem.GetGfx(GfxId);
                }

                return null;
            }
        }	
		
        private LevelLogic _l;
        public LevelLogic L
        {
            get
            {
                if (_l == null)
                    _l = new LevelLogic(this);

                return _l;
            }
        }
    }
}
